﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GUI/User/UserChiTiet.master" AutoEventWireup="true" CodeBehind="ChiTietAlbum.aspx.cs" Inherits="ProjectWebNhac.GUI.User.ChiTietAlbum" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="js/jPlayer/skin/blue.monday/jplayer.blue.monday.css" rel="stylesheet" type="text/css" />
    
<script type="text/javascript">
//<![CDATA[


    $(document).ready(function () 
    {
        var jsonobj = [];
       $('ul.listMusic li a').each(function (index) {
       var mp3 = jsonobj.push({ 'mp3': '../../Nhac/'+$(this).attr('href') });
       var title = [];
       title.push(jQuery(this).text());
       jsonobj[mp3 - 1]['title'] = title;
        });
        /*Loop through a given list and push it into a JSon array*/
        var cssSelector = {
            jPlayer: "#jquery_jplayer_2",
            cssSelectorAncestor: "#jp_container_2"
        };
        var playlist = [];
        var options = {
            swfPath: "js",
            supplied: "oga, mp3",
            wmode: "window",
            smoothPlayBar: true,
            keyEnabled: true,
            playlistOptions: {
            autoPlay: true,
            enableRemoveControls: false
            },
        };
        var myPlaylist = new jPlayerPlaylist(cssSelector, playlist, options);
        for (i = 0; i < jsonobj.length; i++) {
            myPlaylist.add(jsonobj[i]);
        }
    });

     $(document).ready(function () {
         var tempSong = '';


         $('.nologin').showPopup({
             top: 50,
             closeButton: ".close_popup",
             scroll: false,
             onClose: function () {
             }
         });

         $('#login').showPopup({
             top: 50,
             closeButton: ".close_popup",
             scroll: false,
             onClose: function () {
             }
         });

         $(".add").fancybox({
             'scrolling': 'no',
             'titleShow': false,
             width: 440,
             height: 340,
             'onClosed': function () {
                 $("#login_error").hide();
             }
         });
         $('.add').on("click", function () {
             tempSong = $(this).text();
         });
         
     });
</script>

 <div class="main-top span9">
                            <div class="span6 no-margin">
                                <h1>Album</h1>
                                <div class="options-line">
                                    <div class="breadcrumb-container">
                                        <ul class="breadcrumb">
                                            <li><a href="TrangChu.aspx">Trang chủ</a> <span class="divider">»</span></li>
                                            <li class="active">Nghe Album</li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                                <div>
            <div class="span6 no-margin online-player album-article"  style="width: 565px;">
               <div id="jquery_jplayer_2" class="jp-jplayer">
               </div>
		               <div id="jp_container_2" class="jp-audio" style="width: 565px;">
			<div class="jp-type-playlist">
				<div class="jp-gui jp-interface">
					<ul class="jp-controls">
						<li><a href="javascript:;" class="jp-previous" tabindex="1">previous</a></li>
						<li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
						<li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
						<li><a href="javascript:;" class="jp-next" tabindex="1">next</a></li>
						<li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
						<li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
						<li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
						<li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
					</ul>
					<div class="jp-progress">
						<div class="jp-seek-bar">
							<div class="jp-play-bar"></div>
						</div>
					</div>
					<div class="jp-volume-bar">
						<div class="jp-volume-bar-value"></div>
					</div>
					<div class="jp-time-holder">
						<div class="jp-current-time"></div>
						<div class="jp-duration"></div>
					</div>
					<ul class="jp-toggles">
						<li><a href="javascript:;" class="jp-shuffle" tabindex="1" title="shuffle">shuffle</a></li>
						<li><a href="javascript:;" class="jp-shuffle-off" tabindex="1" title="shuffle off">shuffle off</a></li>
						<li><a href="javascript:;" class="jp-repeat" tabindex="1" title="repeat">repeat</a></li>
						<li><a href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off">repeat off</a></li>
					</ul>
				</div>
				<div class="jp-playlist">
					<ul>
						<li><input type="button" value="demo"></li>
					</ul>
				</div>
				<div class="jp-no-solution">
					<span>Update Required</span>
					To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
				</div>
			</div>
		</div>
                       <div style="display:none"  >
                        <ul class="listMusic">
                            <asp:Repeater ID="rePlayList" runat="server">
                            <ItemTemplate>
                                <li>
                                    <a href="<%#Eval("LinkBaiHat") %>"><%#Eval("TenBaiHat") %></a> 
                                     <%#Eval("TenBaiHat")%>
                                </li>
                            </ItemTemplate>
                            </asp:Repeater>
            	
                          </ul>
                        </div>
                
                
                <div id="detail" runat="Server">
                         <div class="song" style="background-color:#f0f0f0" >
                              <h1>Thông Tin Album</h1>
                            </div>
                            <figure>
                                   <asp:Image ID="imgHinhAnhAlbum" runat="server" ImageUrl="" style="width: 145px;"/>
                            </figure>
                            <div class="info-line"><span>Tên Album: </span> 
                                <asp:Label ID="lbTenAlbum" runat="server" Text=""></asp:Label> 
                                </div>
                            <div class="info-line"><span>Thể Loại :</span>
                                <asp:Label ID="lbTheLoai" runat="server" Text=""></asp:Label>
                            </div>
                            <div class="info-line"><span> Ngày Phát Hành :</span> 
                                <asp:Label ID="lbNgayPhatHanh" runat="server" Text=""></asp:Label>
                                </div>
                            <div class="info-line"><span>Lượt Nghe :</span> 
                                <asp:Label ID="lbLuotNghe" runat="server" Text=""></asp:Label>
                             </div>
                             <div class="info-line"><span>Số Bài :</span> 
                                <asp:Label ID="lbSoBai" runat="server" Text=""></asp:Label>
                             </div>


                         <div class="song" style="background-color:#f0f0f0">
                              <h1>Thông Tin Ca Sĩ</h1>
                            </div>
                            <figure>
                                   <asp:Image ID="imgHinhAnhCaSi" runat="server" ImageUrl="" style="width: 145px;"/>
                            </figure>
                            <div class="info-line"><span>Tên Ca Sĩ: </span> 
                                <asp:Label ID="lbTenCS" runat="server" Text=""></asp:Label> 
                                </div>
                            <div class="info-line"><span> Ngày Sinh :</span> 
                                <asp:Label ID="lbNgaySinh" runat="server" Text=""></asp:Label>
                                </div>
                            <div class="info-line"><span>Công ty đại diện :</span> 
                                <asp:Label ID="lbCongTy" runat="server" Text=""></asp:Label>
                             </div>
                            <div class="info-line"><span>Quốc Gia :</span>
                                <asp:Label ID="lbQuocGia" runat="server" Text=""></asp:Label>
                            </div>

                     </div>

               </div>

               </div>


                 <div class="span3 other-albums"style="width: 265px;">
                            <div id="albumcungtheloai" runat="Server">
                            <h1>Album Cùng Thể Loại</h1>
                            <hr>
                            <asp:Repeater ID="reAlbumCungTheLoai" runat="server">
                            <ItemTemplate>
                            <div class="artwork">
                                <a href="#">
                                    <div class="glow"></div>
                                    <img src="../../HinhAnh/Album/<%#Eval("HinhAnh") %>" alt="">
                                </a>
                            &nbsp;&nbsp;&nbsp;&nbsp;</div>
                            </ItemTemplate>
                            </asp:Repeater>
                            </div>
                        </div>

     
           <div class="main-top span9" id="comment" runat="Server"  style="margin-top: 5px;">
<h4>Bình luận</h4>
      <div class="cmntcontainer">
						
						<div class="comment">
<%--							<textarea  class="txtcomment" name="txt" cols="0" rows="0"></textarea>--%>
                            <asp:TextBox ID="txtComment" class="txtcomment"  TextMode="MultiLine"  runat="server"></asp:TextBox>
						</div>
						<div class="commentaction">	
							<ul>
								<li>
                                <%if (Session["ThanhVien"] != null)
                                  {
                                     %>
                                     <asp:Button ID="btnBinhLuan" CssClass="registration btn btn-blue" runat="server" 
                                                      Text="Bình luận" onclick="btnBinhLuan_Click" />
                                     <% 
                                  }
                                  else
                                  { %>
                                  <a  href="#popup_login" id="login" class='registration btn btn-blue'>Bình luận</a>
                                  <%} %>
                                
                                </li>
								
							</ul>
						</div>
						<div class="clear"></div>
						<div class="commentsec">
                            <asp:Repeater ID="reComment" runat="server">
                            <ItemTemplate>
                             <div class="replyfrist">	
							<div class="reply1_cmnt">
								<h6><%#Eval("TaiKhoan") %>                                    <%#Eval("ThoiGian","{0:dd-MM-yyyy}") %></h6> 
                                <p>
									<%#Eval("LoiBinh") %>
								</p>
						</div>

						</div>
                            </ItemTemplate>
                            </asp:Repeater>
                               
                         
						
						
                   		<div class="clear"></div>
        			</div>
				<div class="clear"></div>
			</div>	
</div>       
   


</asp:Content>
